package com.xspace.android.xafcommon.util;

/**
 * Created by liuchen on 2016/10/12.
 */

public class EventBusConstant {

    /**
     * 监听所在地，一般是acitivity或者fragment的名字
     */
    public static String TYPE = "type";
    /**
     * 表示此操作是什么的干活
     */
    public static String ACTION_KEY = "action";
    public static String ACTION_VALUE = "values";
    /**
     * key对应的具体value
     */
    public static String ACTION_VALUE_CHAT_SINGLE_RECEIVE = "chatSingleReceive";
    public static String ACTION_VALUE_CHAT_GROUP_RECEIVE = "chatGroupReceive";
    public static String ACTION_VALUE_XMPP_RECEIVE = "xmppReceive";

    /**
     * 两个fragment通知activity 更新Ui
     * <p>
     * 传的参数有两种情况，单个Bean，或者beanlist
     * acttivity 向两个fragment传参数
     * 传个userId
     */
    public static String ACTION_SELECT_MEMBER_ACTIVITY = "SelectMemberActivity";
    public static String ACTION_SELECT_MENBER_FRAGMENT = "SelectMemberFragment";
    public static String ACTIVITY_TO_ADDRESSBOOK = "activity_to_addressbook";
    public static String ACTIVITY_TO_ORGANIZATION = "acitivity_to_organization";
    public static String ADDRESSBOOK_TO_ORGANIZATION = "addressbook_to_organization";
    public static String ORGANIZATION_TO_ADDRESSBOOK = "organization_to_addressbook";
    public static String ADDRESSBOOK_TO_ACTIVITY = "addressbook_to_activity";
    public static String ORGANIZATION_TO_ACTIVITY = "organization_to_activity";
    public static String HUANXIN_PUSH = "huanxinPush";
    public static String ChatFinish = "chatFinish";
    public static String HUANXIN_PUSH_BEAN = "huanxinPushBean";
    public static String XMPP_PUSH_BEAN = "xmppPushBean";
    public static String TIME_PUSH_BEAN = "timePushBean";
    public static String XMPP_PUSH = "xmppPush";
    public static String NOTICE_DELETE = "noticeDelete";
    public static String LONGIN_OUT = "Logout";

    public static String OPERATE_ID = "operatelId";
    //选择单个
    public static String SINGLE_MEMBER = "singleMember";
    //选择多个
    public static String LIST_MEMBER = "memberList";

    //选择的数量
    public static String NUMBER_SELECT = "numberSelect";
    //选中或者取消
    public static String SELECT_OR_CANCEM = "selectOrCancel";
    //取消某个
    public static String CANCEL_MEMBER = "memberCancel";

    /**
     * 结束页面
     */
    public static String FINISH_PAGE_FORWARD = "finishPage";

    /**
     * 离线状态
     */
    public static String NETWORK_STATE = "finishPage";

    public static final String ZIP_DOWNLAD = "zipDownload";
    public static final String SERVICEOBJ_DOWNLAD = "service";
    public static final String CHUNQIU_DOWNLAD = "chunqiuFy";
    public static final String PIG_DOWNLAD = "pigMy";

    public static final String RESULT = "result";
    public static final String SUCCESS = "success";
    public static final String ERROE = "error";
    public static final String NETWORK_ERROE = "networkError";
    public static final String FILE_ERROE = "fileError";
    public static final String COMMIT_ALREADY = "alreadyCommit";

    //清空微农信或者通知公告的列表
    public static final String CLEAR_WNX_OR_NOTICE = "clearWnxOrNotice";

    public static final String SHIFT_OUT_GROUP = "shiftOutGroup";

    /**
     * XMPP状态
     */
    public static final String CONNECTION_INFO = "connectionInfo";
    public static final String NETWORK_OFFLINE = "networkOffline";
    public static final String NETWORK_ONLINE = "networkOnline";
    public static final String NETWORK_OVERLOAD = "networkOverload";
    public static final String NETWORK_RECONNECT = "networkReconnect";
    public static final String CONNECTION_CLOSED_ON_ERROR = "connectionClosedOnError";
    public static final String RECONNECTION_SUCCESSFUL = "reconnectionSuccessful";
    public static final String RECONNECTION_FAILED = "reconnectionFailed";

    /**
     * 环信状态
     */
    public static final String HUANXIN_NET_OFFLINE = "huanxinNetOffline";
    public static final String HUANXIN_NET_OVERLOAD = "huanxinNetOverload";
    public static final String HUANXIN_NET_RECONNECT = "huanxinNetReconnect";

    public static String REFRESH_ADDRESSBOOK = "refreshAddressBook";

    public static String HOME_PAGE = "HomePageRefresh";

    //好友申请
    public static String NEW_FRIEND_PUSH = "new_friend_push";
    public static String NEW_FRIEND_PUSH_BEAN = "new_friend_push_bean";
    public static String NEW_FRIEND_FINISH = "new_friend_finish";
    public static String DELETE_FRIEND_PUSH = "delete_friend_push";
    public static String DELETE_FRIEND_PUSH_BEAN = "delete_friend_push_bean";
    public static String DELETE_FRIEND_FINISH = "delete_friend_finish";

    //信息编辑页面
    public static String EDIT_INFO = "edit_info";

    //筛选工作类型
    public static String WORKTYPE_SELECT = "workItemTypeSelect";
    public static String WORKITEM_TYPE_SELECT = "workItemTypeSelect";
    public static String WORKITEM_STATUS_SELECT = "workItemStatusSelect";
    //工作日志刷新
    public static String SCHEDULE_FINISH = "scheduleFinish";
    public static String WORKLOG_REFRESH = "workLogRefresh";
    public static String WORKLOG_ERROR = "workLogError";
    public static String WORKLOG_REJECT = "workLogReject";
    public static String WORKLOG_DELETE = "workLogDelete";

    //添加工作日志的表单提交,h5交互传递的事件
    public static String MAF_BASE_PLUGIN = "MAFBasePlugin";
    public static String REQUEST_CODE = "requestCode";
    public static String WORK_LOG_FORM_PAIFA = "paifa";
    public static String WORK_LOG_UNDEAL_FORM = "undealFormDetail";
    public static String WORK_LOG_FORM_DELETE = "workLogFormDelete";

    //离线缓存完成某一项后
    public static String OFFLINE_SCHEDULE = "offlineSchedule";
    public static String REQUEST_FINISH = "request_finish";
    public static String LOAD_MORE_FINISH = "load_more_finish";
    public static String REQUEST_ERROR = "request_error";
    public static String LOAD_MORE_ERROR = "load_more_error";
    public static String OFFLINE_CHUN_DB = "offlineChunDB";

    //固定工作选择了一个工作对象
    public static String OBJECT_ITEM_SELECT = "object_item_select";

    /**
     * 农技员类型
     */
    public static final String QAC_CHAT = "qacChat";
    public static final String QAC_CHAT_TRANSFER = "qacChatTransfer"; //转呈的会话,为群聊
    public static final String QAC_CHAT_CONTENT = "qacChatContent";
    public static final String IS_SHOW_RED = "isShowRed";
    public static final String IS_HIDE_RED = "isHideRed";
    public static final String IS_HIDE_RED_ITEM = "isItemHideRed";
    public static final String OPERETE_RED_INDEX = "index";

    public static final String QAC_REFRESH_MY_QUESTION = "refreshMyQuestion"; //发起了一个问题,刷新农民端问题列表
    public static final String QAC_REFRESH_MY_TRANSFER = "refreshMyTransfer"; //刷新转呈
    public static final String QAC_REFRESH_MY_FAVORITE = "refreshMyFavorite"; //刷新收藏
    public static final String QAC_REFRESH_MY_CONCERN = "refreshMyConcern"; //刷新关注

    public static final String ANSWER_QUESTION = "answerQuestion";//回答了一个问题
    public static final String REFRESH_QUESTION_DETAIL = "refreshQuestionDetail";//问答详情刷新

    //养殖信息集合
    public static String BREED_CODE = "breed_code";
    public static String SERVICE_OBJECT_ADD_SUCCESS = "service_object_add_success";
    public static String SERVICE_OBJECT_EDIT_SUCCESS = "service_object_edit_success";
    public static String SERVICE_OBJECT_STOP_SUCCESS = "service_object_stop_success";

    //收到推送的评论
    public static String COMMENT_PUSH = "comment_push";

    public static String QAC_MESSAGE_PUSH = "qac_message__push";

    public static String CQFY_EDIT_SUCCESS = "cafy_edit_success";
    public static String CQFY_ADD_SUCCESS = "cafy_add_success";
    public static String CQFY_DELETE_SUCCESS = "cqfy_delete_success";

    public static String MIANYI_ADD_SUCCESS = "mysb_add_success";
    public static String LOGO_UPLOAD_FINISHED = "logoUploadFinished";



}
